home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem Batch file for running details.xst
- set surname=
- set firstname=
-
- if '%1' == '' goto usage
- if not '%1' == '-f' if not '%1' == '-s' goto usage
- if '%1' == '-f' goto f
- if '%1' == '-s' goto s
- echo This should not happen
- goto exit
-
- :f
- set firstname=%2
- if '%3' == '' goto do
- if '%3' == '-s' goto s2
- goto usage
-
- :s
- set surname=%2
- if '%3' == '' goto do
- if '%3' == '-f' goto f2
- goto usage
-
- :f2
- set firstname=%4
- goto do
-
- :s2
- set surname=%4
- goto do
-
- :usage
- echo Usage: details [-f firstname] [-s surname]
- goto exit
-
- :do
- ..\apps\xtract details.xst
-
- :exit
-